

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>模板-表单</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="${basePath!}/genius/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="${basePath!}/genius/style/admin.css" media="all">
  <link rel="stylesheet" href="${basePath!}/genius/style/form.css" media="all">
</head>
<body style="overflow: hidden;">
  <div class="layui-fluid">
    <div class="layui-card">
    	<div class="layui-card-body" id="layui-card-body">
        <div class="layui-form layuiadmin-card-header-auto">
        <div class="layui-form-item">
          <button class="layui-btn layui-btn-danger "data-type="back"><i class="layui-icon layui-icon-return"></i>返回</button>
		  <button class="layui-btn layui-btn-warm " data-type="submit"><i class="layui-icon layui-icon-ok"></i>保存</button>
		  <button data-type="reset" class="layui-btn layui-btn-primary"><i class="layui-icon layui-icon-refresh"></i>重置</button>
          </div>  
		</div> 
    	<div class="layui-own-border" id="layui-own-border">
    	<form class="layui-form" action="" lay-filter="form1">
		<!--mode1、mode2、mode3分别代表一列/二列/三列 -->
      	  <div class="mode1">
      	  <div class="layui-form-item" >
				<div class="layui-form_one">
					<label class="layui-form-label">组织机构</label>
					 <div class="layui-input-block" style="width:350px" id="groupIdTreeSelect"></div>
				 </div>
			</div>
		  <div class="layui-form-item">
			  <div class="layui-form_one">
			      <label class="layui-form-label">用户名</label>
			      <div class="layui-input-block">
			        <input type="text" name="username"  lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input" >
			      </div>
			  </div>
    	 </div>
    	 <div class="layui-form-item">
	    	 <div class="layui-form_one">
		      <label class="layui-form-label">姓名</label>
		      <div class="layui-input-block">
		        <input type="text" name="name" lay-verify="name"  placeholder="请输入昵称" autocomplete="off" class="layui-input">
		      </div>
	    	 </div>
   		 </div>
		  <div class="layui-form-item">
			  <div class="layui-form_one">
	         	<label class="layui-form-label">性别</label>
	         	<div class="layui-input-block">
	           		<input type="radio" name="sex" value="男" title="男" >
	           		<input type="radio" name="sex" value="女" title="女">
	         	</div>
			  </div>
    	</div>
<!-- 		 <div class="layui-form-item"> -->
<!-- 		 <div class="layui-form_one"> -->
<!-- 		 	<label class="layui-form-label">密码</label> -->
<!-- 		      <div class="layui-input-block"> -->
<!-- 		        <input type="password" name="password" lay-verify="pass"  placeholder="请输入密码" autocomplete="off" class="layui-input" > -->
<!-- 		      </div> -->
<!-- 		 </div> -->
<!--        	 <div class="layui-form-mid layui-word-aux">请填写6到12位密码</div> -->
<!--     </div> -->
    <div class="layui-form-item">
     <div class="layui-form_one">
     	<label class="layui-form-label">口令</label>
	      <div class="layui-input-block">
	        <input type="password" name="command" lay-verify="command"  placeholder="请输入口令" autocomplete="off" class="layui-input">
	      </div>
     </div>
      <div class="layui-form-mid layui-word-aux" style="margin-left:25px;">请填写3位以上口令</div>
    </div>
    
    <div class="layui-form-item">
    <div class="layui-form_one">
    	<label class="layui-form-label">手机号</label>
	      <div class="layui-input-block">
	        <input type="text" name="phone"  placeholder="请输入手机号" autocomplete="off" class="layui-input"><!-- lay-verify="phone"  -->
	      </div>
    </div>
      
    </div>
    <div class="layui-form-item">
     <div class="layui-form_one">
      <label class="layui-form-label">邮箱</label>
      <div class="layui-input-block">
        <input type="text" name="mail"  placeholder="请输入邮箱" autocomplete="off" class="layui-input">
      </div>
     </div>
    </div>
    <div class="layui-form-item">
     <div class="layui-form_one">
      <label class="layui-form-label">工号</label>
      <div class="layui-input-block">
        <input type="text" name="jobnumber"  placeholder="请输入工号" autocomplete="off" class="layui-input">
      </div>
     </div>
    </div>
    <div class="layui-form-item">
     	<div class="layui-form_one"  style="padding-left:25px">
		<label class="layui-form-label layui-required">钉钉组织</label>
		<div class="layui-input-block" >
			<select name="company" lay-verify="required" disabled >
				<option value="jindushenghuo">金度生活</option>
				<option value="qiyegongzuo">企业工作</option>
				<option value="shoudongtianjia">手动添加</option>
			</select>
		</div>
	 </div>
    </div>
    <div class="layui-form-item">
     <div class="layui-form_one">
      <label class="layui-form-label">备注</label>
      <div class="layui-input-block">
        <input type="text" name="remark"  placeholder="请输入备注" autocomplete="off" class="layui-input">
      </div>
     </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">状态</label>
      <div class="layui-input-inline">
        <input type="checkbox" lay-filter="switch" name="status" lay-skin="switch" lay-text="启用|禁用">
      </div>
    </div>
	<div class="layui-form-item layui-hide">
      <input type="button" lay-submit lay-filter="save" value="确认">
    </div>
    	</div>
    	<div class="clearfix"></div>
		</form>
    	</div>
     	
      </div>
    </div>
  </div>

  <script src="${basePath!}/genius/layui/layui.js"></script>  
  <script>
	//Demo
	layui.config({
    base: '${basePath!}/genius/'
    ,host:'${basePath!}'//项目访问路径 
  }).extend({
	index:'lib/index'
    ,edit: 'adminmanager/user/edit' 
  }).use(['index','edit'], function(){
	 var $ = layui.$
	 ,edit = layui.edit;
	 
	  var parentJson = {};
	  parentJson.sex = "${RequestParameters["sex"]}"||'男';
	  parentJson.status = "${RequestParameters["status"]}";
	  parentJson.userId = "${RequestParameters["userId"]}";
	  parentJson.username = "${RequestParameters["username"]}";
	  parentJson.password = "${RequestParameters["password"]}";
	  parentJson.command = "${RequestParameters["command"]}";
	  parentJson.name = "${RequestParameters["name"]}";
	  parentJson.phone = "${RequestParameters["phone"]}";
	  parentJson.mail = "${RequestParameters["mail"]}";
	  parentJson.bakUrl = "${RequestParameters["bakUrl"]}";
	  parentJson.modifyType = "${RequestParameters["modifyType"]}";
	  parentJson.groupId = "${RequestParameters["groupId"]}";
	  parentJson.groupname = "${RequestParameters["groupname"]}";
	  parentJson.jobnumber = "${RequestParameters["jobnumber"]}";
	  parentJson.remark = "${RequestParameters["remark"]}";
	  parentJson.company = "${RequestParameters["company"]}";
	  
	  edit.setParentJson(parentJson);
	  
  });
	</script>
</body>
</html>